package com.cn.mmd.service;

import com.cn.mmd.mapper.TeachingGroupMapper;
import com.cn.mmd.model.StudentGrouping;
import com.cn.mmd.model.TeachingGroup;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2016/8/1 0001.
 */
@Service("teachingGrupServiceL")
public class TeachingGrupServiceImplL implements TeachingGrupServiceL {

    @Autowired
    private TeachingGroupMapper teachingGroupMapper;

    @Override
    public TeachingGroup selectByPrimaryKey(Integer teachinggroupid) {
        return teachingGroupMapper.selectByPrimaryKey(teachinggroupid);
    }

    @Override
    public int deleteByPrimaryKey(Integer teachinggroupid) {
        return teachingGroupMapper.deleteByPrimaryKey(teachinggroupid);
    }

    @Override
    public int deleteByTeaId(String s) {
        return teachingGroupMapper.deleteByTeaId(s);
    }

    @Override
    public int insertSelective(TeachingGroup record) {
        return teachingGroupMapper.insertSelective(record);
    }

    @Override
    public int deleteByGroupId(Integer teachingGroupId) {
        return teachingGroupMapper.deleteByGroupId(teachingGroupId);
    }

    @Override
    public int updateByPrimaryKeySelective(TeachingGroup record) {
        return teachingGroupMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public List<TeachingGroup> selectByTeachingGroupId(Integer teachingGroupId) {
        return teachingGroupMapper.selectByTeachingGroupId(teachingGroupId);
    }

    @Override
    public    List<TeachingGroup> selectByTeacherGroupId1(TeachingGroup record) {
        return teachingGroupMapper.selectByTeacherGroupId1(record);
    }

    @Override
    public int updateByTeachingGroupId(TeachingGroup record) {
        return teachingGroupMapper.updateByTeachingGroupId(record);
    }
}
